<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    //话费充值
    $router->resource('/rechargetype', 'RechargeTypeController');
    $router->resource('/operator', 'OperatorController');
    $router->resource('/recharge-package', 'RechargePackageController');
    //用户
    $router->resource('/users', 'UserController');
    $router->resource('/user_promote_record', 'UserPromoteRecordController'); //推广记录
    //订单管理
    $router->resource('/orders', 'OrderController');
    //积分管理
    $router->resource('/promote_types', 'PromoteTypeController');
    //汇率设置
    $router->resource('/exchage_rate', 'ExchageController');

});
